<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../static/js/vue.js"></script>
</head>
<body>
<div id="app">
    {{message}}
<!--    <button v-on:myClick()>anniu</button>-->
    <button @click="myClick">anniu</button>
</div>
</body>


<script>
    var vue = new Vue({
        el: '#app',
        data: {
            message: 'Hello Vue.js!'
        },
        created: function () {
            // `this` 指向 vm 实例
            console.log('message is: ' + this.message)
        },
        methods: {
            myClick() {
                alert("111")
            }
        }
    })
</script>
</html>